/**
 * Edge class is used by algorithms which use list of edges.
 * Each Edge object has two elements denoting the "from" and "to" vertices of the edge.
 *
 * @version 1.0
 * @author K.Vamsi Krishna
 */
public class Edge
{
	private int from;
	private int to;
	
	/**
	 * Creates an Edge object with the specified "from" and "to" vertices.
	 */
	public Edge(int from, int to)
	{
		this.from = from;
		this.to = to;
	}
	
	/**
	 * Returns "from" of the edge
	 */
	public int getFrom()
	{
		return from;
	}
	
	/**
	 * Returns "to" of the edge
	 */ 
	public int getTo()
	{
		return to;
	}
	
	/**
	 * Returns string representation of the edge.
	 */
	public String toString()
	{
		return "("+from+","+to+")";
	}	
}